﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WpfApplication1.Models
{
    class PhotoModel
    {
        private string _id;
        private IDictionary<string, object> _from; // gồm name, id
        private string _message;
        private string _story;
        //private IDictionary<string, object> _story_tags;
        private string _picture;
        private string _link; // link of photo
        private string _name;
        private string _icon;
        // Còn phần action nữa
        private string _createdTime;
        private string _updatedTime;
        private string _likesCountText;
        private string _commentCountText;

        public string Id
        {
            get { return _id; }
        }

        public string FromId
        {
            get { return (string)_from["id"]; }
        }

        public string Story
        {
            get { return _story; }
        }

        public string FromName
        {
            get { return (string)_from["name"]; }
        }

        public string UpdateTime
        {
            get { return _updatedTime; }
        }

        public string Message
        {
            get { return _message; }
        }

        public string Picture
        {
            get { return _picture; }
        }

        public string Name
        {
            get { return _name; }
        }

        public string LikeCountText
        {
            get { return _likesCountText; }
            set { _likesCountText = value; }
        }

        public string CommentCountText
        {
            get { return _commentCountText; }
            set { _commentCountText = value; }
        }

        public PhotoModel(string id, IDictionary<string, object> from, string message, string story, string picture, string link, string name, string icon,
            string createdTime, string updatedTime, string likeCountText, string commentCountText)
        {
            _id = id;
            _from = from;
            _message = message;
            _story = story;
            _picture = picture;
            _link = link;
            _name = name;
            _icon = icon;
            _createdTime = createdTime;
            _updatedTime = updatedTime;
            _likesCountText = likeCountText;
            _commentCountText = commentCountText;
        }
    }
}
